var q6 ="#fUI/RunnerGame.img/RunnerGameUI/UI/Point/1#"
var q1 ="#fUI/SoulUI.img/DungeonMap/icon/dungeonItem/0#"
var zh5 ="#fUI/Gateway.img/WorldSelect/BtDot/normal/0#"   
var 下等 ="#v4250200#"  
var 中等 ="#v4250201#"  
var 高等 ="#v4250202#"  
var 矿石 ="#v4021000#"   
var status = 0;

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 0 && status == 0) {
			cm.dispose();
			return;
		}
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0) {
        	var text="#e#r "+"      " +q6+"   您可以制作以下物品哦  "+q6+" #n\r\n";
			text+="#b#L1#"+矿石+"#r普通石榴石-制作#b#l\r\n";
			text+="#b#L2#"+下等+"#r下等石榴石-制作#b#l\r\n";
			text+="#b#L3#"+中等+"#r中等石榴石-制作#b#l\r\n";
			text+="#b#L4#"+高等+"#r高等石榴石-制作#b#l\r\n";
			cm.sendSimple(text);
		} else if (status == 1){
			switch (selection) {
				case 1:
				cm.dispose();
				cm.openNpc(0, "普通石榴石冶炼");
				break;
				case 2:
				cm.dispose();
				cm.openNpc(0, "下等石榴石冶炼");
				break;
				case 3:
				cm.dispose();
				cm.openNpc(0, "中等石榴石冶炼");
				break;
				case 4:
				cm.dispose();
				cm.openNpc(0, "高等石榴石冶炼");
				break;
				case 40:
				cm.dispose();
				cm.openNpc(0, "埃苏海盗套装");
				break;
				case 41:
				cm.dispose();
				cm.openNpc(0, "埃苏武器");
				break;
				default:
				cm.sendOk("管理员正在准备中.请期待");
				cm.dispose();
			}
		}
	}
}